﻿using System;
using Caliburn.Micro;

namespace CardPlay.Client.Views
{
    public partial class ShellView
    {
        private IScreen Model
        {
            get { return (IScreen) DataContext; }
        }

        private void ShellView_OnActivated(object sender, EventArgs e)
        {
            Model.Activate();
        }

        private void ShellView_OnDeactivated(object sender, EventArgs e)
        {
            Model.Deactivate(false);
        }
    }
}
